package com.example.service;

import com.example.pojo.dto.ShoppingCarDto;
import com.example.pojo.entity.ShoppingCar;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ShoppingCarService {
    void insert(ShoppingCarDto shoppingCarDto);

    void updateShoppingCar(ShoppingCar shoppingCar);

    void removeById(Integer id);

    void removeBatchByIds(List<Integer> ids);

    List<ShoppingCar> list();

    ShoppingCar getById(Integer id);

    PageInfo<ShoppingCar> selectByPage(Integer pageNum, Integer pageSize, String goodsName, Integer userId);

    ShoppingCar getByShoppingCarNum(String shoppingCarNum);
}
